package cn.cloud9;

public class Demo10PassedSeven {

    /**
     * https://www.bilibili.com/video/BV18J411W7cE?p=91
     * 逢七过
     * 遇到7或者7的倍数，就直接说过
     * @param args
     */
    public static void main(String[] args) {
        int begin = 1;
        int end = 100;

        for (int i = begin; i <= end; i++) {
            if (i % 7 == 0) System.out.printf("%d %d 过\n", i, i / 7);
        }
    }
}
